import request from '@/utils/request'

// 查询首页轮播广告列表
export function listHomeAdvertise(query) {
  return request({
    url: '/sms/homeAdvertise/list',
    method: 'get',
    params: query
  })
}

// 查询首页轮播广告详细
export function getHomeAdvertise(id) {
  return request({
    url: '/sms/homeAdvertise/' + id,
    method: 'get'
  })
}

// 新增首页轮播广告
export function addHomeAdvertise(data) {
  return request({
    url: '/sms/homeAdvertise',
    method: 'post',
    data: data
  })
}

// 修改首页轮播广告
export function updateHomeAdvertise(data) {
  return request({
    url: '/sms/homeAdvertise',
    method: 'put',
    data: data
  })
}

// 删除首页轮播广告
export function delHomeAdvertise(id) {
  return request({
    url: '/sms/homeAdvertise/' + id,
    method: 'delete'
  })
}

// 导出首页轮播广告
export function exportHomeAdvertise(query) {
  return request({
    url: '/sms/homeAdvertise/export',
    method: 'get',
    params: query
  })
}